package cn.bone.springcloud.controller;

import cn.bone.springcloud.service.IPaymentService;
import cn.bone.springcloud.service.IPaymentService2;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderController {

    @Resource
    private IPaymentService paymentService;
    @Resource
    private IPaymentService2 paymentConsul2;


    @RequestMapping("/order/payment/consul")
    public String consul(){
        return paymentService.paymentConsul();
    }

    @RequestMapping("/order/payment/consul2")
    public String consul2(){
        return paymentConsul2.paymentConsul2();
    }

    @RequestMapping("/order/payment/timeOut")
    public String timeOut(){
        return paymentConsul2.paymentTimeOut();
    }
}
